{extend name="./template/default/pc/pub/uc.html" /}
{block name="seo"}
<title>{$site_name}-我的书架</title>
{/block}
{block name="main"}
<div class="i-right">
    <!--我的书架 mod -->
    <div class="i-title" style="padding-left:30px;">
        我的书架
    </div>
    <div class="bookshelfMod">
        <table>
            <tbody>
                <tr class="head">
                    <td>封面</td>
                    <td class="t2">书名</td>
                    <td class="t3">分类</td>
                    <td class="t4">作者</td>
                    <td class="t5">更新时间</td>
                    <td class="t6">状态</td>
                    <td class="t7">操作</td>
                </tr>
                {volist name="books" id="vo"}
                <tr>
                    <td>
                        <a href="/pc/{$book_ctrl}/{$vo.param}" target="_blank">
                            <img class="lazyimg" data-original="{$vo.cover}" src="https://p.pstatp.com/origin/ffa400036691f82c85e5">
                        </a>
                    </td>
                    <td class="t3">
                        <a href="/pc/{$book_ctrl}/{$vo.param}" target="_blank">{$vo.articlename}</a>
                    </td>
                    <td class="t5">
                        <a href="/pc/{$book_ctrl}/{$vo.param}" target="_blank">{$vo.cate.cate_name}</a>
                    </td>
                    <td class="t4">
                        <atarget="_blank">{$vo.author}</a>
                    </td>
                    <td class="t3">{$vo.lastupdate|date='Y-m-d H:i:s'}</td>

                    <td class="t6">{$vo.fullflag == 1 ? '已完结' : '连载中'}</td>
                    <td class="t7">
                        <a href="/pc/{$book_ctrl}/{$vo.param}" class="goon" target="_blank">阅读</a>
                        <i><span class="Collection" ajax-get="" url="/pc/delfavors?id={$vo.articleid}">删除</span></i>
                    </td>
                </tr>
                {/volist}
            </tbody>
        </table>
        <div class="page-box">
            <div class="page-content">
                <div class="ui-pagination">
                    <ul class="pagination">
                        {if $page.last_page > 1}
                        {if $page.current_page == 1}
                        <li class="disabled"><span>«</span></li>
                        {else/}
                        <li><a href="/pc/bookshelf?page={$page.current_page-1}{$param}">«</a></li>
                        {/if}

                        {for start="1" end="$page.last_page + 1"}
                        {if $i == $page.current_page }
                        <li class="active"><span>1</span></li>
                        {else/}
                        <li><a href="/pc/bookshelf?page={$i}{$param}">{$i}</a></li>
                        {/if}
                        {/for}

                        {if $page.current_page == $page.last_page}
                        <li class="disabled"><span>»</span></li>
                        {else/}
                        <li><a href="/pc/bookshelf?page={$page.current_page+1}{$param}">»</a></li>
                        {/if}
                        {/if}
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}